#include "DlinkQueue.h"
#include <iostream>
#include <time.h>
int main()
{
    myQueue queue;

    clock_t start,end;
    double cpu_time_used;

    start = clock();
    for(int idx = 1;idx <= 10000000;idx++)
    {
        queue.push(idx);
    }
    end = clock();
    cpu_time_used = ((double)(end - start)) /CLOCKS_PER_SEC;

    printf("程序执行时间为 %f秒\n",cpu_time_used);
    std::cout<<"size:"<<queue.size()<<std::endl;
}